package prototype.improve;

/**
 * @author shenhan
 * @create 2020/3/20 11:00
 * @description
 */
public class Client {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("tom", 1, "white");
        Sheep sheepFriend = new Sheep("Jerry", 1, "black");
        sheep.setFriend(sheepFriend);

        final Sheep sheep2 = (Sheep) sheep.clone();
        final Sheep sheep3 = (Sheep) sheep.clone();
        final Sheep sheep4 = (Sheep) sheep.clone();
        final Sheep sheep5 = (Sheep) sheep.clone();

        System.out.println(sheep);
        System.out.println(sheep2);
        System.out.println(sheep3);
        System.out.println(sheep4 == sheep5);
    }
}
